package com.example.car.utils

import com.example.car.bean.BrandListBean
import com.example.car.bean.LogoBean
import com.example.car.bean.ModelsBean
import retrofit2.Call
import retrofit2.http.GET
import retrofit2.http.Query

interface CarApi {
    companion object {
        val key = "b37be6f2fca3b8bd28567100417090f7"
        val base_url = "http://apis.juhe.cn/cxdq/"
    }

    @GET("brand")
    open fun getCarLogo(
        @Query("key") key: String,
        @Query("first_letter") first_letter: String
    ): Call<LogoBean>

    @GET("series")
    open fun getBrandList(
        @Query("key") key: String,
        @Query("brandid") brandid: String
    ): Call<BrandListBean>

    @GET("models")
    open fun getModelsList(
        @Query("key") key: String,
        @Query("series_id") series_id: String
    ): Call<ModelsBean>
}